@csrf
<div class="layui-row">
    <div class="layui-form-item">
        <label for="name" class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" class="layui-input" value="{{$industry->name??''}}">
            <input type="hidden" name='is_tags' value="{{$is_tags?1:0}}">
        </div>
    </div>
    @if(!$is_tags)
    <div class="layui-form-item">
        <label for="parent_id" class="layui-form-label">上级</label>
        <div class="layui-input-block">
            <input type="text" id="parent_id" name="parent_id" lay-filter="parent_id" class="layui-input"
                value="{{$industry->parent_id??''}}">
        </div>
    </div>
    @endif
    <div class="layui-form-item">
        <label for="keywords" class="layui-form-label">关键字</label>
        <div class="layui-input-block">
            <input type="text" name="keywords" class="layui-input" value="{{$industry->keywords??''}}">
        </div>
    </div>

    <div class="layui-form-item">
        <label for="industry_id" class="layui-form-label">是否有效</label>
        <div class="layui-input-block">
            <input type="hidden" name="status" value="0">
            <input type="checkbox" name="status" lay-skin="switch" lay-text="有效|无效" value="1"
                {{$industry->status=='1'?'checked':'0'}}>
        </div>
    </div>
    <div class="layui-form-item">
        <label for="content" class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input type="text" name="description" class="layui-input" value="{{$industry->description??''}}"
                placeholder="">
        </div>
    </div>
</div>
